//
//  PreviewController.h
//  Collection
//
//  Created by Neelam Shehzadi on 10/3/11.
//  Copyright 2011 Confiz Solution. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>

@interface PreviewController : UIViewController<MFMailComposeViewControllerDelegate> {
    IBOutlet UIScrollView *objScrollView;
    NSUserDefaults *cache;
	IBOutlet UILabel *contact;
	NSArray *arrImgName;
   	NSArray *arrImges;

	IBOutlet UILabel *dateVal;
	IBOutlet UILabel *phoneVal;
	IBOutlet UILabel *timeVal;
	IBOutlet UITextView *addressVal1;
	IBOutlet UITextView *addressVal2;

	IBOutlet UILabel *townVal;
	IBOutlet UILabel *countryVal;
	IBOutlet UILabel *postCodeVal;
	IBOutlet UILabel *driverName;
	IBOutlet UILabel *timeOutVal;
	IBOutlet UILabel *timeBackVal;
	IBOutlet UILabel *jobNoVal;
	IBOutlet UILabel *mileageVal;
	IBOutlet UILabel *vehicleManufacturerVal;
	IBOutlet UILabel *modelVehicleVal;
	IBOutlet UILabel *regVahicleVal;
	IBOutlet UILabel *colorVehicleVal;
	IBOutlet UILabel *mileageVahicleVal;
	IBOutlet UILabel *taxDiscVahicleVal;
	IBOutlet UILabel *drvableVahicleVal;
	IBOutlet UILabel *personalVehicleVal;
	IBOutlet UILabel *recoveryVahicleVal;
	IBOutlet UILabel *wheelVahicleVal;
	IBOutlet UILabel *toolsVahicleVal;
	IBOutlet UILabel *keysVahicleVal;
	IBOutlet UILabel *alarmVahicleVal;
	IBOutlet UILabel *radioVahicleVal;
	IBOutlet UILabel *carVahicleVal;
	IBOutlet UILabel *fuelVahicleVal;
	IBOutlet UILabel *areaOfDemageVal;
	IBOutlet UITextView *additionalCommentVal;
	IBOutlet UILabel *typeVehicleVal;
	IBOutlet UILabel *typeVehicleValetVal;
	IBOutlet UITextView *unableCheckVal;
	IBOutlet UIImageView *customerImage;
    IBOutlet UIImageView *driverImage;
}
@property(nonatomic,retain)	IBOutlet UILabel *dateVal;
@property(nonatomic,retain)	 NSArray *arrImgName;
@property(nonatomic,retain)	 NSArray *arrImges;

- (UIImage *) imageWithView;
-(id)initWithImages:(NSArray*)imgArray andImagesName:(NSArray*)nameArray;

@end
